package com.ruoyi.net.domain;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备状态-PCC状态对象 device_status_pcc
 *
 * @author net
 * @date 2024-12-11
 */
public class DeviceStatusPcc extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 网元id */
    @Excel(name = "网元id")
    @ApiModelProperty(value = "网元id")
    private String elementId;

    /** ip */
    @Excel(name = "ip")
    @ApiModelProperty(value = "ip")
    private String ip;

    /** 是否最优 */
    @Excel(name = "是否最优")
    @ApiModelProperty(value = "是否最优")
    private String isBest;

    /** 是否连接 */
    @Excel(name = "是否连接")
    @ApiModelProperty(value = "是否连接")
    private String isConnected;

    /** 条目状态（0未激活 1已激活） */
    @Excel(name = "条目状态", readConverterExp = "0=未激活,1=已激活")
    @ApiModelProperty(value = "条目状态")
    private String status;

    /** 删除标记（0正常 2删除） */
    private String delFlag;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setElementId(String elementId)
    {
        this.elementId = elementId;
    }

    public String getElementId()
    {
        return elementId;
    }
    public void setIp(String ip)
    {
        this.ip = ip;
    }

    public String getIp()
    {
        return ip;
    }
    public void setIsBest(String isBest)
    {
        this.isBest = isBest;
    }

    public String getIsBest()
    {
        return isBest;
    }
    public void setIsConnected(String isConnected)
    {
        this.isConnected = isConnected;
    }

    public String getIsConnected()
    {
        return isConnected;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("elementId", getElementId())
                .append("ip", getIp())
                .append("isBest", getIsBest())
                .append("isConnected", getIsConnected())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
